﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AplikacjaOgre
{
    class ObjectManager
    {
        List<Object> objects;

        public ObjectManager()
        {
            objects = new List<Object>();
        }

        public void AddObject(Object o)
        {
            objects.Add(o);
        }

        public void Update()
        {
            foreach (var o in objects)
            {
                o.Update();
            }
        }
    }
}
